﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.News
{
    public partial class add_category : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var get_cat = new TblNewsCategoryController().FetchAll().ToList();
            string name = Request.Form["name"];
            new TblNewsCategoryController().Insert(name,get_cat.Count+1, false);
        }
    }
}